using Pay.TO;
using System;
using System.Collections.Generic;

namespace Pay.Data {
    /// <summary>
    /// 拓垦商城专题
    /// </summary>
    [Serializable]
    public class TokenShopSubject {
        /// <summary>
        /// 专题Id
        /// [主键：√]
        /// [长度：19]
        /// [不允许为空]
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 专题标题
        /// [长度：200]
        /// [不允许为空]
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 专题图片URL地址
        /// [长度：300]
        /// [不允许为空]
        /// </summary>
        public string ImgUrl { get; set; }

        /// <summary>
        /// 排序
        /// [长度：10]
        /// [不允许为空]
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 状态
        /// [长度：10]
        /// [不允许为空]
        /// </summary>
        public ETokenShopSubjectStatus Status { get; set; }

        /// <summary>
        /// 类型 1：分销商城 2：拓垦商城 3：固定不跳转
        /// [长度：10]
        /// [不允许为空]
        /// </summary>
        public ETokenShopSubjectType Type { get; set; }

        /// <summary>
        /// 专题链接
        /// [长度：300]
        /// [不允许为空]
        /// </summary>
        public string TopicLink { get; set; }

        /// <summary>
        /// 浏览量
        /// [长度：10]
        /// [不允许为空]
        /// </summary>
        public int PageviewsNum { get; set; }

        /// <summary>
        /// 商品数量
        /// [长度：10]
        /// [不允许为空]
        /// </summary>
        public int ProductNum { get; set; }

        /// <summary>
        /// 创建时间
        /// [长度：23，小数位数：3]
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 专题产品
        /// </summary>
        public virtual ICollection<TokenShopSubjectProduct> SubjectProducts { get; set; }
    }
}
